﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Square:Shape
    {
        protected int a;
        protected int b;
        public override void GetArea()
        {
            base.GetArea();
            Console.WriteLine("请输入正方形的长：");
            a = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("请输入正方形的宽：");
            b = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("正方形的面积为："+(a*b));
            Console.WriteLine("正方形的颜色为："+color);
        }
    }
}
